import request from '@/utils/request'
// 按需暴露一个注册接口
export const registerAPI = (data) => {
  return request({
    url: '/h5/user/register',
    method: 'post',
    data
  })
}

// 封装一个登录接口
export const loginAPI = (data) => {
  return request({
    url: '/h5/user/login',
    method: 'post',
    data
  })
}

// 封装一个获取人员信息的接口
export const userInfoAPI = () => {
  return request({
    url: '/h5/user/currentUser'
  })
}
